package com.czc.cca.ddl;

import org.zoomdev.zoom.dao.ddl.SqlType;
import org.zoomdev.zoom.dao.ddl._DDL_Column;
import org.zoomdev.zoom.dao.ddl._DDL_Primary;
import org.zoomdev.zoom.dao.ddl._DDL_Table;
import org.zoomdev.zoom.dao.driver.mysql.MysqlDriver;

@_DDL_Table(name = "qb_trans", simpleName = "", engine = MysqlDriver.InnoDB, comment = "内部户交易")
public class _DDL_QbTrans {

    @_DDL_Primary()
    @_DDL_Column(name = "tr_id", type = SqlType.CHAR, size = 16, nullable = false, comment = "交易ID")
    private String id;

    @_DDL_Column(name = "tr_amt", type = SqlType.INT, comment = "金额，元")
    private Integer amt;

    @_DDL_Column(name = "tr_value", type = SqlType.INT, nullable = false, comment = "当前余额，分")
    private Integer value;

    @_DDL_Column(name = "tr_state", type = SqlType.INT, nullable = false, comment = "状态，0：未完成、1：已完成")
    private Integer state;

    @_DDL_Column(name = "qb_id", type = SqlType.CHAR, size = 20, nullable = false, comment = "钱包ID")
    private String qbId;

    @_DDL_Column(name = "tr_type", type = SqlType.VARCHAR, size = 20, nullable = false, comment = "交易类型")
    private String type;

    @_DDL_Column(name = "error_msg", type = SqlType.VARCHAR, size = 100, comment = "错误信息")
    private String errorMsg;

}
